package com.xuelang.pipeline.domain.pipeline.service;

import com.xuelang.pipeline.domain.pipeline.TriggerSetting;

import java.util.List;

/**
 * <p>触发配置域服务接口</p>
 *
 * @author : yixin.lys
 * @date : 2024-06-12 11:43
 **/
public interface TriggerSettingDomainService {

    /**
     * 根据流水线code获取触发配置
     * @param pipelineCode
     * @return
     */
    TriggerSetting queryByPipelineCode(String pipelineCode);


    /**
     * 新增触发配置
     * @param triggerSetting
     */
    void add(TriggerSetting triggerSetting);


    /**
     * 更新触发配置
     * @param triggerSetting
     */
    void update(TriggerSetting triggerSetting);


    /**
     * 根据id批量删除
     * @param idList
     */
    void removeByIds(List<String> idList);

    /**
     * 根据流水线code批量删除
     * @param codeList
     */
    void removeByCodes(List<String> codeList);

}
